﻿using System;
using HigLabo.Net.Extensions;

namespace HigLabo.Net.WindowsLive
{
    /// <summary>
    /// 
    /// </summary>
    public class Album : LiveObject
    {
        /// <summary>
        /// 
        /// </summary>
        public Int32 Count { set; get; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsontext"></param>
        public Album(String jsontext)
            : base(jsontext)
        {
            this.SetProperty(jsontext);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsontext"></param>
        private new void SetProperty(String jsontext)
        {
            var d = this.SetData(jsontext);
            this.Count = d.ToInt32("count") ?? 0;
        }
    }
}
